package chapter6;
/****************************************************************
 * Author：icynlau
 * Description: 格式化整数
 * Date:2021/4/6
 * ***************************************************************
 */
public class exc6_38 {
	
	public static void main(String[] args) {
		
		for(int i=1;i<=100;i++) {
			
			System.out.print(getRandomUpperCaseLetter()+" ");
			if(i%10==0&&i!=1) {
				System.out.println();
			}
			
		}
		
		System.out.print("\n===========================\n");
		
		for(int i=1;i<=100;i++) {
			
			System.out.print(getRandomNumber()+" ");
			if(i%10==0&&i!=1) {
				System.out.println();
			}
			
		}
		
	}
	
	public static char  getRandomCharacter(char ch1,char ch2) {
		return (char)(ch1+Math.random()*(ch2-ch1+1));
	}
	
	public static char  getRandomUpperCaseLetter() {
		return getRandomCharacter('A','Z');
	}
	
	public static char  getRandomNumber() {
		return getRandomCharacter('0','9');
	}
	
	
	

}
